<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<base href="<%=basePath%>">

<title>供应商 - ${provider.name }</title>
<link rel="shortcut icon" href="images/ico.ico">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="供应商的介绍页面">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="css/header.css" rel="stylesheet" type="text/css"
	charset="utf-8" />
<link href="css/common.css" rel="stylesheet" type="text/css"
	charset="utf-8" />
<style>
.hd.company {
	background: none !important;
	padding: 0px;
	border-bottom: 2px solid #D14313;
	height: 25px !important;
}

.bd.company {
	min-height: 180px;
}

.cominfo {
	padding-top: 20px;
}

.infotag {
	font-weight: bold;
	padding: 10px 0px;
	font-size: 15px;
	margin: 5px;
}

.infocontent {
	padding: 0px 10px;
	font-size: 14px;
}

.infocontent div {
	margin: 8px;
}
</style>
</head>
<body>
	<jsp:include page="pages/header.jsp"></jsp:include>

	<div class="grid-m div">
		<div class="col-main">
			<div class="list box">
				<div class="hd company">
					<span class="gray">公司简介：${provider.name }</span>
				</div>
				<div class="company" id="descrpt" style="overflow: hidden;">
					<div
						style="text-align:center; padding:15px; font-weight:bold; font-size:17px;">${provider.name
						}</div>
					<div class="infocontent">${provider.description }</div>
				</div>
				<div class="cominfo" id="basic">
					<div class="infotag">基本信息：</div>
					<div class="infocontent">
						<s:if test="provider.province != null && provider.city != null">
							<div>所在城市： ${provider.province} ${provider.city }</div>
						</s:if>
						<s:if test="provider.address !=null && provider.address != '' ">
							<div>详细地址： ${provider.address }</div>
						</s:if>
						<s:if
							test="provider.registerCapital != null&& provider.registerCapital != '' ">
							<div>注册资金： ${provider.registerCapital }万元</div>
						</s:if>
						<s:if
							test="provider.foundationTime != null&& provider.foundationTime != '' ">
							<div>
								成立时间：
								<s:date name="provider.foundationTime" format="yyyy-MM-dd" />
							</div>
						</s:if>
						<s:if
							test="provider.staffSize != null&& provider.staffSize != '' ">
							<div>人员规模： ${provider.staffSize }人左右</div>
						</s:if>
						<s:if
							test="provider.factoryArea !=null&& provider.factoryArea != '' ">
							<div>厂房面积： ${provider.factoryArea }平方米</div>
						</s:if>
						<s:if
							test="provider.equipment != null&& provider.equipment != '' ">
							<div>加工设备： ${provider.equipment }</div>
						</s:if>
						<s:if
							test="(provider.bigSlab != null&& provider.bigSlab != '') 
								||(provider.rawStone != null&& provider.rawStone != '')
								||(provider.standardSlab != null&& provider.standardSlab != '') ">
							<div>
								年加工能力：
								<s:if test="provider.bigSlab != null&& provider.bigSlab != '' ">大板${provider.bigSlab }平方米  </s:if>
								<s:if
									test="provider.rawStone != null&& provider.rawStone != '' ">荒料${provider.rawStone}平方米  </s:if>
								<s:if
									test="provider.standardSlab != null&& provider.standardSlab != '' ">标准板${provider.standardSlab }平方米</s:if>
							</div>
						</s:if>
						<s:if test="provider.product != null&& provider.product != '' ">
							<div>主营业务： ${provider.product }</div>
						</s:if>
					</div>
				</div>
				<div class="cominfo" id="contact">
					<div class="infotag">联系方式：</div>
					<div class="infocontent">
						<s:if
							test="provider.contactPerson != null&& provider.contactPerson != '' ">
							<div>联系人： ${provider.contactPerson }</div>
						</s:if>
						<s:if test="provider.duty != null&& provider.duty != '' ">
							<div>职务： ${provider.duty }</div>
						</s:if>
						<s:if test="provider.phone != null && !provider.phone.equals('')">
							<div>
								电话：
								<s:iterator value="phoneList" var="item" status="status">
									<s:property value="#item" />； 
						</s:iterator>
							</div>
						</s:if>
						<s:if test="provider.email != null&& provider.email != '' ">
							<div>
								邮箱：
								<s:iterator value="emailList" var="item" status="status">
									<s:property value="#item" />； 
								</s:iterator>
							</div>
						</s:if>
						<s:if test="provider.fax != null&& provider.fax != '' ">
							<div>
								传真：
								<s:iterator value="faxList" var="item" status="status">
									<s:property value="#item" />； 
								</s:iterator>
							</div>
						</s:if>
						<s:if test="provider.webSite != null&& provider.webSite != '' ">
							<div>
								网址：
								<s:iterator value="websiteList" var="item" status="status">
									<s:property value="#item" />； 
								</s:iterator>
							</div>
						</s:if>
					</div>
				</div>
				<s:if test="provider.other != null&& provider.other != '' ">
					<div class="cominfo" id="other">
						<div class="infotag">其他介绍：</div>
						<div class="infocontent">${provider.other }</div>
					</div>
				</s:if>
				<s:if test="provider.photo != null&& provider.photo != '' ">
					<div class="cominfo" id="photo">
						<div class="infotag">公司图片：</div>
						<div class="infocontent">
							<img title="${provider.name }原始图片" alt="${provider.name }原始图片"
								width="600px" height="400px"
								src="upload/provider/${provider.photo }" />
						</div>
					</div>
				</s:if>
			</div>
			<div class="clear"></div>
			<div class="box common div">
				<div class="hd">
					<b class="bla lar">公司热销产品</b><span class="fr gray"
						style="cursor:pointer"> <a
						href="providerstone/findAllPrividerStones.action?providerId=${provider.id }"
						style="color: red;">更多>></a> </span>
				</div>
				<div class="bd">
					<ul>

						<c:forEach items="${page.list}" var="item" end="4">
							<li class="fl"><a
								href="stone/toStoneCompany.action?stoneId=${item.stone.id }"
								class="image"> <img
									src="upload/stone/70/${item.stone.defaultPhoto }" height="120"
									width="120" /> </a> <a
								href="stone/toStoneCompany.action?stoneId=${item.stone.id }"
								class="gray"> ${item.stone.chineseName } </a></li>
						</c:forEach>
					</ul>
				</div>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
		</div>
		<jsp:include page="stone/righter.jsp"></jsp:include>
	</div>
	<jsp:include page="pages/footer.jsp"></jsp:include>
</body>
</html>
